package com.dha.caodangcongnghe;

import com.dha.asynctask.SinhVienXemDiemAsyncTask;
import com.dha.asynctask.SinhVienXemDiemTongKetAsyncTask;
import com.dha.ultility.QuangCao;
import com.dha.variable.ThongTinTaiKhoan;
import com.dha.variable.XemDiemVariable;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.TextView;

public class SinhVienXemDiemTongKet extends ActionBarActivity {

	private TextView tvTenSinhVien, tvMaSinhVien;
	
//	private QuangCao quangCao;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_xemdiem_tongket);
//		quangCao = new QuangCao(this, SinhVienXemDiemTongKet.this);
		
		tvTenSinhVien = (TextView) findViewById(R.id.tv_tenSV_Diem);
		tvMaSinhVien = (TextView) findViewById(R.id.tv_MaSV_Diem);

		tvMaSinhVien.setText(ThongTinTaiKhoan.maTaiKhoan);
		tvTenSinhVien.setText(ThongTinTaiKhoan.hoTen);

		SinhVienXemDiemTongKetAsyncTask asyncTask = new SinhVienXemDiemTongKetAsyncTask(
				SinhVienXemDiemTongKet.this, ThongTinTaiKhoan.maTaiKhoan);
		asyncTask.execute();
	}

}
